﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Negocio;
using Entidad;
using Negocio.BL;

namespace EvolSoftWeb
{
    public partial class wfrmServicio : System.Web.UI.Page
    {
        ServicioLogic blServicio;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.cargarGrillaServicios();
            }
        }

        private void cargarGrillaServicios()
        {

            blServicio = new ServicioLogic();
            try
            {
                grdServicio.DataSource = blServicio.listarServicio();
                grdServicio.DataBind();
            }
            catch (Exception ex)
            {
                lblmsgOK.Text = ex.InnerException==null?ex.Message:ex.InnerException.Message;
                popupOK.ShowOnPageLoad=true;
            }
        }
    }
}